Fast Output-Sensitive Matrix Multiplication
نویسندگان
چکیده
3 We consider the problem of multiplying two U×U matrices A and C of elements from a field F. We present a new randomized algorithm that can use the known fast square matrix multiplication algorithms to perform fewer arithmetic operations than the current state of the art for output matrices that are sparse. In particular, let ω be the best known constant such that two dense U×U matrices can be multiplied with O (U) arithmetic operations. Further denote by N the number of nonzero entries in the input matrices while Z is the number of nonzero entries of matrix product AC. We present a new Monte Carlo algorithm that uses Õ ( U ( Z U )ω−2 +N ) arithmetic operations and outputs the nonzero entries of AC with high probability. For dense input, i.e., N = U, if Z is asymptotically larger than U , this improves over state of the art methods, and it is always at most O (U). For general input density we improve upon state of the art when N is asymptotically larger than U4−ωZω−5/2. The algorithm is based on dividing the input into ”balanced” subproblems which are then compressed and computed. The new subroutine that computes a matrix product with balanced rows and columns in its output uses time Õ ( UZ(ω−1)/2 +N ) which is better than the current state of the art for balanced matrices when N is asymptotically larger than UZω/2−1, which always holds when N = U. In the I/O model — where M is the memory size and B is the block size — our algorithm is the first nontrivial result that exploits cancellations and sparsity of the output. The I/O complexity of our algorithm is Õ ( U2(Z/U)ω−2/(Mω/2−1B) + Z/B +N/B ) , which is asymptotically faster than the state of the art unless M is large.
منابع مشابه
A Comparative Evaluation of the Sub-sectors' Linkages of Iran's Economy in the Last Five Decades: The Hybrid Approach of Input-Output Tables and Cross-Impact Matrix Multiplication Applied to Classification (MICMAC)
In this paper, the hybrid modeling of Input-Output framework and MICMAC technique have been used to evaluates the inter-sectoral interactions between all sectors and activities of Iran’s economy based on the statistics aggregate Input-Output tables for five periods from 1973 to 2011. The main 15 sectors are elaborated and the results of the interactions were used to extract sectoral prioriti...
متن کاملA Time-Efficient Output-Sensitive Quantum Algorithm for Boolean Matrix Multiplication
This paper presents a quantum algorithm that computes the product of two n×n Boolean matrices in Õ(n √ l+l √ n) time, where l is the number of non-zero entries in the product. This improves the previous output-sensitive quantum algorithms for Boolean matrix multiplication in the time complexity setting by Buhrman and Špalek (SODA’06) and Le Gall (SODA’12). We also show that our approach cannot ...
متن کاملError correction in fast matrix multiplication and inverse
We present new algorithms to detect and correct errors in the product of two matrices, or the inverse of a matrix, over an arbitrary field. Our algorithms do not require any additional information or encoding other than the original inputs and the erroneous output. Their running time is softly linear in the number of nonzero entries in these matrices when the number of errors is sufficiently sm...
متن کاملFinding orthogonal vectors in discrete structures
Hopcroft’s problem in d dimensions asks: given n points and n hyperplanes in R, does any point lie on any hyperplane? Equivalently, if we are given two sets of n vectors each in R, is there a pair of vectors (one from each set) that are orthogonal? This problem has a long history and a multitude of applications. It is widely believed that for large d, the problem is subject to the curse of dime...
متن کاملMatrix compression by common subexpression elimination
In this report a method for common subexpression elimination in matrices is explored. The method is applied to several types of matrices occurring in numerical simulations. In all cases, the cost of a matrix-vector multiplication is reduced by a significant amount. The amount of storage required for the eliminated matrices is also less than that required for the original matrices. When the prop...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015